package com.atmaowei.mapper;

import com.atmaowei.controller.request.BaseRequest;
import com.atmaowei.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {

    public void save(Department department);

    List<Department> page(BaseRequest baseRequest);

    void delete(String dno);

    void update(@Param("department") Department department,@Param("oldDname") String oldDname);

    Department getByDno(String dno);

    void deleteSelected(String dno);
}
